
<div class="sidebar" id="sidebar">
    <script type="text/javascript">
         try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
    </script>
    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
            <button class="btn btn-success">
                <i class="icon-signal"></i>
            </button>
            <button class="btn btn-info">
                <i class="icon-pencil"></i>
            </button>

            <button class="btn btn-warning">
                <i class="icon-group"></i>
            </button>

            <button class="btn btn-danger">
                <i class="icon-cogs"></i>
            </button>

        </div>

        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
            <span class="btn btn-success"></span>

            <span class="btn btn-info"></span>

            <span class="btn btn-warning"></span>

            <span class="btn btn-danger"></span>
        </div>
    </div>
    <ul class="nav nav-list">
        <li>
            <g:link controller="home" target="_blank">
                <i class="icon-home"></i>
                <span class="menu-text"> 首页 </span>
            </g:link>
        </li>
        <li>
            <a href="#" class="dropdown-toggle">
                <i class="icon-signal"></i>
                <span class="menu-text">基础设置</span>
                <b class="arrow icon-angle-down"></b>
            </a>
            <ul class="submenu" id="left_1">
                <li>
                    <g:link controller="mngCategory" params="[left_menu_id:'1']">
                        <i class="icon-double-angle-right"></i>
                        分类管理
                    </g:link>
                </li>
                <li>
                    <g:link controller="mngPhotoSize" params="[left_menu_id:'1']">
                        <i class="icon-double-angle-right"></i>
                        尺寸管理
                    </g:link>
                </li>
                <li>
                    <g:link controller="mngPhotoPaper" params="[left_menu_id:'1']">
                        <i class="icon-double-angle-right"></i>
                        纸张管理
                    </g:link>
                </li>

                <li>
                    <g:link controller="mngPhotoPaperPrice" params="[left_menu_id:'1']">
                        <i class="icon-double-angle-right"></i>
                        纸张价格管理
                    </g:link>
                </li>
                <li>
                    <g:link controller="mngPhotoFrame" params="[left_menu_id:'1']">
                        <i class="icon-double-angle-right"></i>
                        相框管理
                    </g:link>
                </li>
                <li>
                    <g:link controller="mngPhotoFramePrice" params="[left_menu_id:'1']">
                        <i class="icon-double-angle-right"></i>
                        相框价格管理
                    </g:link>
                </li>
                <li>
                    <g:link controller="mngPhoto" params="[left_menu_id:'1']">
                        <i class="icon-double-angle-right"></i>
                        作品管理
                    </g:link>
                </li>
                <li>
                    <g:link controller="mngPublicizeImg" params="[left_menu_id:'1']">
                        <i class="icon-double-angle-right"></i>
                        广告图片管理
                    </g:link>
                </li>
            </ul>
        </li>
        <li>
            <a href="#" class="dropdown-toggle">
                <i class="icon-signal"></i>
                <span class="menu-text">客户管理</span>
                <b class="arrow icon-angle-down"></b>
            </a>
            <ul class="submenu" id="left_2">
                <li>
                    <g:link controller="mngMember" action="indexCustomer" params="[left_menu_id:'2']">
                        <i class="icon-double-angle-right"></i>
                        客户管理
                    </g:link>
                </li>
                <li>
                    <g:link controller="mngMember" action="indexPhotographer" params="[left_menu_id:'2']">
                        <i class="icon-double-angle-right"></i>
                        摄影师管理
                    </g:link>
                </li>
                <li>
                    <g:link controller="mngApplyForPhotographer" action="index" params="[left_menu_id:'2']">
                        <i class="icon-double-angle-right"></i>
                        申请摄影师管理
                    </g:link>
                </li>
                <li>
                    <g:link controller="mngComment" action="index" params="[left_menu_id:'2']">
                        <i class="icon-double-angle-right"></i>
                        客户评论管理
                    </g:link>
                </li>
            </ul>
        </li>
        <li>
            <a href="#" class="dropdown-toggle">
                <i class="icon-signal"></i>
                <span class="menu-text">订单管理</span>
                <b class="arrow icon-angle-down"></b>
            </a>
            <ul class="submenu" id="left_3">
                <li>
                    <g:link controller="mngOrder" action="index">
                        <i class="icon-double-angle-right"></i>
                        新订单
                    </g:link>
                </li>
                <li>
                    <g:link controller="mngOrder" action="order_deliver">
                        <i class="icon-double-angle-right"></i>
                        已出货订单
                    </g:link>
                </li>
            </ul>
        </li>
        <li>
            <a href="#" class="dropdown-toggle">
                <i class="icon-signal"></i>
                <span class="menu-text">系统管理</span>
                <b class="arrow icon-angle-down"></b>
            </a>
            <ul class="submenu" id="left_4">
                <li>
                    <g:link controller="mngAdministrator" params="[left_menu_id:'4']">
                        <i class="icon-double-angle-right"></i>
                        管理员管理
                    </g:link>
                </li>
            </ul>
        </li>
    </ul>
    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
    </div>

    <script type="text/javascript">
        $("#left_"+${left_menu_id}).css("display","block");
        try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
    </script>
</div>